package com.example.demo.auth;

import javax.servlet.http.HttpServletRequest;

public class AuthHelper {
    private AuthHelper(){}

    public static final String AUTH_KEY_USER_INFO = "USER_INFO";

    public static BaseUserInfo getUserInfo(HttpServletRequest request){
        return (BaseUserInfo) request.getAttribute(AUTH_KEY_USER_INFO);
    }
}
